﻿using UnityEngine;
using System.Collections;


public class PrefabsMgr
{
    public static GameObject Load(string asset)
    {
        GameObject obj = (GameObject)Object.Instantiate(Resources.Load(asset, typeof(GameObject)) as GameObject,
         new Vector3(0, 0, 0), Quaternion.Euler(0, 0, 0));

        return obj;
    }


    public static void Destroy(GameObject obj)
    {
        UnityEngine.Object.Destroy(obj);
    }

    public static void DestroyImmediate(GameObject obj)
    {
        UnityEngine.Object.DestroyImmediate(obj);
    }

}


